package xyz.liuyuhe.StudySpring.ch7.cglib;

import java.lang.reflect.Method;

import org.springframework.cglib.proxy.MethodInterceptor;
import org.springframework.cglib.proxy.MethodProxy;

public class TaskInterceptor implements MethodInterceptor{

    public Object intercept(Object arg0, 
            Method arg1, Object[] arg2, MethodProxy arg3) throws Throwable {
        System.out.println("1---id:"+arg2[0]);
        return arg3.invokeSuper(arg0, arg2);
    }

}
